<!DOCTYPE HTML>
<html lang="zh-hans" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>groupclass.get_result() | 量化投资程序 帮助文档</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        <meta name="author" content="量化投资班二期 第1组">
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-back-to-top-button/plugin.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-chapter-fold/chapter-fold.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-splitter/splitter.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-code/plugin.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-auto-scroll-table/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../factorTest/groupclass.save_result.html" />
    
    
    <link rel="prev" href="../factorTest/groupclass.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="6.5"
        data-chapter-title="groupclass.get_result()"
        data-filepath="factorTest/groupclass.get_result.md"
        data-basepath=".."
        data-revision="Sat Jul 24 2021 19:32:14 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
                
                <li>
                    <a href="https://224466414.github.io/Quantitative_Investment_Help/" target="blank" class="custom-link">Home</a>
                </li>
            
            

            
            <li class="divider"></li>
            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        目录
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="getDate/getDate.html">
            
                
                    <a href="../getDate/getDate.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        日期获取模块 getDate
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="getDate/dateclass.html">
            
                
                    <a href="../getDate/dateclass.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        dateclass()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="getDate/dates.html">
            
                
                    <a href="../getDate/dates.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        针对日期的方法
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="getDate/dateclass.get_dates.html">
            
                
                    <a href="../getDate/dateclass.get_dates.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.1.</b>
                        
                        dateclass.get_dates()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="getDate/dateclass.get_beforeDate.html">
            
                
                    <a href="../getDate/dateclass.get_beforeDate.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.2.</b>
                        
                        dateclass.get_beforeDate()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="getDate/dateclass.get_afterDate.html">
            
                
                    <a href="../getDate/dateclass.get_afterDate.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.3.</b>
                        
                        dateclass.get_afterDate()
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="getDate/months.html">
            
                
                    <a href="../getDate/months.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        针对月份的方法
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="getDate/dateclass.get_months.html">
            
                
                    <a href="../getDate/dateclass.get_months.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.1.</b>
                        
                        dateclass.get_months()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="getDate/dateclass.get_BOMs.html">
            
                
                    <a href="../getDate/dateclass.get_BOMs.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.2.</b>
                        
                        dateclass.get_BOMs()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="getDate/dateclass.get_EOMs.html">
            
                
                    <a href="../getDate/dateclass.get_EOMs.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.3.</b>
                        
                        dateclass.get_EOMs()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="getDate/dateclass.get_DUMs.html">
            
                
                    <a href="../getDate/dateclass.get_DUMs.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.4.</b>
                        
                        dateclass.get_DUMs()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="getDate/dateclass.get_beforeMonth.html">
            
                
                    <a href="../getDate/dateclass.get_beforeMonth.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.5.</b>
                        
                        dateclass.get_beforeMonth()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="getDate/dateclass.get_afterMonth.html">
            
                
                    <a href="../getDate/dateclass.get_afterMonth.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.6.</b>
                        
                        dateclass.get_afterMonth()
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="getDate/cycles.html">
            
                
                    <a href="../getDate/cycles.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        针对周期的方法
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="getDate/dateclass.get_cycles.html">
            
                
                    <a href="../getDate/dateclass.get_cycles.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.1.</b>
                        
                        dateclass.get_cycles()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="getDate/dateclass.get_BOCs.html">
            
                
                    <a href="../getDate/dateclass.get_BOCs.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.2.</b>
                        
                        dateclass.get_BOCs()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="getDate/dateclass.get_EOCs.html">
            
                
                    <a href="../getDate/dateclass.get_EOCs.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.3.</b>
                        
                        dateclass.get_EOCs()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="getDate/dateclass.get_DUCs.html">
            
                
                    <a href="../getDate/dateclass.get_DUCs.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.4.</b>
                        
                        dateclass.get_DUCs()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="getDate/dateclass.get_beforeCycle.html">
            
                
                    <a href="../getDate/dateclass.get_beforeCycle.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.5.</b>
                        
                        dateclass.get_beforeCycle()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="getDate/dateclass.get_afterCycle.html">
            
                
                    <a href="../getDate/dateclass.get_afterCycle.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.6.</b>
                        
                        dateclass.get_afterCycle()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="getDate/dateclass.get_currentCycle.html">
            
                
                    <a href="../getDate/dateclass.get_currentCycle.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.7.</b>
                        
                        dateclass.get_currentCycle()
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="getStock/getStock.html">
            
                
                    <a href="../getStock/getStock.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        股票日频数据获取模块 getStock
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="getStock/stockclass.html">
            
                
                    <a href="../getStock/stockclass.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        stockclass()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="getStock/stockclass.read_data.html">
            
                
                    <a href="../getStock/stockclass.read_data.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        stockclass.read_data()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="getStock/stockclass.get_stockPools.html">
            
                
                    <a href="../getStock/stockclass.get_stockPools.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        stockclass.get_stockPools()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="getStock/stockclass.get_data.html">
            
                
                    <a href="../getStock/stockclass.get_data.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        stockclass.get_data()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="getStock/stockclass.get_names.html">
            
                
                    <a href="../getStock/stockclass.get_names.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        stockclass.get_names()
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="getQuote/getQuote.html">
            
                
                    <a href="../getQuote/getQuote.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        股票分钟频数据获取模块 getQuote
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="getQuote/quoteclass.html">
            
                
                    <a href="../getQuote/quoteclass.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        quoteclass()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="getQuote/quoteclass.read_data.html">
            
                
                    <a href="../getQuote/quoteclass.read_data.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        quoteclass.read_data()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="getQuote/quoteclass.get_data.html">
            
                
                    <a href="../getQuote/quoteclass.get_data.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        quoteclass.get_data()
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4" data-path="getIndex/getIndex.html">
            
                
                    <a href="../getIndex/getIndex.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        指数数据获取模块 getIndex
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1" data-path="getIndex/indexclass.html">
            
                
                    <a href="../getIndex/indexclass.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.1.</b>
                        
                        indexclass()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="getIndex/indexclass.read_data.html">
            
                
                    <a href="../getIndex/indexclass.read_data.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.2.</b>
                        
                        indexclass.read_data()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="getIndex/indexclass.get_data.html">
            
                
                    <a href="../getIndex/indexclass.get_data.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.3.</b>
                        
                        indexclass.get_data()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="getIndex/indexclass.get_infos.html">
            
                
                    <a href="../getIndex/indexclass.get_infos.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.4.</b>
                        
                        indexclass.get_infos()
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="5" data-path="factorProcess/factorProcess.html">
            
                
                    <a href="../factorProcess/factorProcess.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.</b>
                        
                        因子处理模块 factorProcess
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="5.1" data-path="factorProcess/describe.html">
            
                
                    <a href="../factorProcess/describe.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.1.</b>
                        
                        describe()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="factorProcess/winsorize.html">
            
                
                    <a href="../factorProcess/winsorize.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.2.</b>
                        
                        winsorize()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="factorProcess/neutralize.html">
            
                
                    <a href="../factorProcess/neutralize.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.3.</b>
                        
                        neutralize()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="factorProcess/normalize.html">
            
                
                    <a href="../factorProcess/normalize.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.4.</b>
                        
                        normalize()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.5" data-path="factorProcess/standardize.html">
            
                
                    <a href="../factorProcess/standardize.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.5.</b>
                        
                        standardize()
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="6" data-path="factorTest/factorTest.html">
            
                
                    <a href="../factorTest/factorTest.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.</b>
                        
                        因子检验模块 factorTest
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="6.1" data-path="factorTest/ICIRclass.html">
            
                
                    <a href="../factorTest/ICIRclass.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.1.</b>
                        
                        ICIRclass()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.2" data-path="factorTest/ICIRclass.get_result.html">
            
                
                    <a href="../factorTest/ICIRclass.get_result.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.2.</b>
                        
                        ICIRclass.get_result()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.3" data-path="factorTest/ICIRclass.save_result.html">
            
                
                    <a href="../factorTest/ICIRclass.save_result.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.3.</b>
                        
                        ICIRclass.save_result()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.4" data-path="factorTest/groupclass.html">
            
                
                    <a href="../factorTest/groupclass.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.4.</b>
                        
                        groupclass()
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="6.5" data-path="factorTest/groupclass.get_result.html">
            
                
                    <a href="../factorTest/groupclass.get_result.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.5.</b>
                        
                        groupclass.get_result()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.6" data-path="factorTest/groupclass.save_result.html">
            
                
                    <a href="../factorTest/groupclass.save_result.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.6.</b>
                        
                        groupclass.save_result()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.7" data-path="factorTest/regressionclass.html">
            
                
                    <a href="../factorTest/regressionclass.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.7.</b>
                        
                        regressionclass()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.8" data-path="factorTest/regressionclass.get_result.html">
            
                
                    <a href="../factorTest/regressionclass.get_result.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.8.</b>
                        
                        regressionclass.get_result()
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="6.9" data-path="factorTest/regressionclass.save_result.html">
            
                
                    <a href="../factorTest/regressionclass.save_result.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.9.</b>
                        
                        regressionclass.save_result()
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="7" data-path="example/example.html">
            
                
                    <a href="../example/example.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.</b>
                        
                        因子计算范例
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="7.1" data-path="example/MKT-SMB-HML.html">
            
                
                    <a href="../example/MKT-SMB-HML.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.1.</b>
                        
                        计算 MKT/SMB/HML
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="example/iDStd-iDSkew-iDKurt.html">
            
                
                    <a href="../example/iDStd-iDSkew-iDKurt.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.2.</b>
                        
                        计算 iDStd/iDSkew/iDKurt
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.3" data-path="example/SmartMoney.html">
            
                
                    <a href="../example/SmartMoney.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.3.</b>
                        
                        计算 SmartMoney
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.4" data-path="example/factorTest.html">
            
                
                    <a href="../example/factorTest.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.4.</b>
                        
                        进行因子预处理与有效性检验
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    本书使用 GitBook 发布
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >量化投资程序 帮助文档</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="groupclassgetresult">groupclass.get_result()</h1>
<pre><code class="lang-python">groupClass.get_result()
</code></pre>
<ol>
<li><p>&#x91CA;&#x4E49;</p>
<p> &#x6839;&#x636E;&#x521B;&#x5EFA;&#x5206;&#x5C42;&#x6CD5;&#x68C0;&#x9A8C;&#x5BF9;&#x8C61;&#x65F6;&#x8F93;&#x5165;&#x7684;&#x56E0;&#x5B50;&#x503C;&#x6570;&#x636E;&#x3001;&#x671F;&#x671B;&#x6536;&#x76CA;&#x7387;&#x6570;&#x636E;&#x8BA1;&#x7B97;&#x5404;&#x6708;&#x7684;&#x5404;&#x7EC4;&#x6295;&#x8D44;&#x7EC4;&#x5408;&#x671F;&#x671B;&#x6536;&#x76CA;&#x7387;&#x3002;</p>
</li>
<li><p>&#x53C2;&#x6570;</p>
<p> &#x65E0;</p>
</li>
<li><p>&#x8FD4;&#x56DE;</p>
<p> &#x8BE5;&#x65B9;&#x6CD5;&#x5C06;&#x8BA1;&#x7B97;&#x7ED3;&#x679C;&#x8FDB;&#x884C;&#x5728;groupclass&#x7684;&#x5C5E;&#x6027;&#x4E2D;&#x5B58;&#x50A8;&#x800C;&#x975E;&#x8FD4;&#x56DE;&#xFF0C;&#x53EF;&#x901A;&#x8FC7;&#x8BBF;&#x95EE;&#x5C5E;&#x6027;&#x8FDB;&#x884C;&#x63D0;&#x53D6;&#x3002;<br> &#x53EF;&#x63D0;&#x53D6;&#x7684;&#x7ED3;&#x679C;&#x89C1;<a href="#jump">5.&#x7ED3;&#x679C;</a></p>
</li>
<li><p>&#x4F8B;&#x5B50;</p>
<ul>
<li><p>&#x8F93;&#x5165;</p>
<pre><code class="lang-python"><span class="hljs-keyword">import</span> pandas <span class="hljs-keyword">as</span> pd
<span class="hljs-keyword">import</span> sys
sys.path.append(<span class="hljs-string">&apos;modules&apos;</span>)
<span class="hljs-keyword">from</span> factorTest <span class="hljs-keyword">import</span> groupclass

factor = pd.read_csv(<span class="hljs-string">&apos;factor/IVCAPM.csv&apos;</span>).set_index(<span class="hljs-string">&apos;secIDs&apos;</span>)

beginDate = <span class="hljs-string">&apos;20050101&apos;</span>
endDate = <span class="hljs-string">&apos;20210531&apos;</span>
groupNumber = <span class="hljs-number">5</span>

groupClass = groupclass(beginDate, endDate, factor, groupNumber, ascending=<span class="hljs-keyword">True</span>, frequency=<span class="hljs-number">1</span>)
groupClass.get_result()

print(groupClass.TMBDaily)
print(groupClass.summary)
</code></pre>
</li>
<li><p>&#x8F93;&#x51FA;</p>
<pre><code class="lang-python">              <span class="hljs-keyword">return</span>      value
<span class="hljs-number">20050104</span>         NaN   <span class="hljs-number">1.000000</span>
<span class="hljs-number">20050105</span>         NaN   <span class="hljs-number">1.000000</span>
<span class="hljs-number">20050106</span>         NaN   <span class="hljs-number">1.000000</span>
<span class="hljs-number">20050107</span>         NaN   <span class="hljs-number">1.000000</span>
<span class="hljs-number">20050110</span>         NaN   <span class="hljs-number">1.000000</span>
<span class="hljs-prompt">... </span>             ...        ...
<span class="hljs-number">20210525</span> -<span class="hljs-number">0.00125336</span>  <span class="hljs-number">11.892362</span>
<span class="hljs-number">20210526</span> -<span class="hljs-number">0.00312402</span>  <span class="hljs-number">11.855210</span>
<span class="hljs-number">20210527</span> -<span class="hljs-number">0.00842693</span>  <span class="hljs-number">11.755307</span>
<span class="hljs-number">20210528</span>  <span class="hljs-number">0.00018393</span>  <span class="hljs-number">11.757469</span>
<span class="hljs-number">20210531</span>   -<span class="hljs-number">0.015022</span>  <span class="hljs-number">11.580849</span>

[<span class="hljs-number">3986</span> rows x <span class="hljs-number">2</span> columns]
                      <span class="hljs-number">1</span>         <span class="hljs-number">2</span>         <span class="hljs-number">3</span>         <span class="hljs-number">4</span>         <span class="hljs-number">5</span>       TMB
meanRetDaily    <span class="hljs-number">0.001055</span>  <span class="hljs-number">0.001075</span>  <span class="hljs-number">0.001035</span>  <span class="hljs-number">0.000850</span>  <span class="hljs-number">0.000401</span>  <span class="hljs-number">0.000654</span>
winRateDaily    <span class="hljs-number">0.475665</span>  <span class="hljs-number">0.517060</span>  <span class="hljs-number">0.523332</span>  <span class="hljs-number">0.505770</span>  <span class="hljs-number">0.464626</span>  <span class="hljs-number">0.442298</span>
targetRet       <span class="hljs-number">1.245093</span>  <span class="hljs-number">1.243212</span>  <span class="hljs-number">1.227631</span>  <span class="hljs-number">1.168319</span>  <span class="hljs-number">1.037525</span>  <span class="hljs-number">1.166050</span>
benchmarkRet    <span class="hljs-number">1.209552</span>  <span class="hljs-number">1.209552</span>  <span class="hljs-number">1.209552</span>  <span class="hljs-number">1.209552</span>  <span class="hljs-number">1.209552</span>  <span class="hljs-number">1.209552</span>
excessRet       <span class="hljs-number">0.035541</span>  <span class="hljs-number">0.033661</span>  <span class="hljs-number">0.018080</span> -<span class="hljs-number">0.041233</span> -<span class="hljs-number">0.172027</span> -<span class="hljs-number">0.043501</span>
sigma           <span class="hljs-number">0.292396</span>  <span class="hljs-number">0.313103</span>  <span class="hljs-number">0.322106</span>  <span class="hljs-number">0.332610</span>  <span class="hljs-number">0.352913</span>  <span class="hljs-number">0.134521</span>
sharpeRatio     <span class="hljs-number">4.121436</span>  <span class="hljs-number">3.842864</span>  <span class="hljs-number">3.687087</span>  <span class="hljs-number">3.392314</span>  <span class="hljs-number">2.826543</span>  <span class="hljs-number">8.370787</span>
IR              <span class="hljs-number">0.548764</span>  <span class="hljs-number">0.806771</span>  <span class="hljs-number">0.464108</span> -<span class="hljs-number">0.828104</span> -<span class="hljs-number">2.053636</span> -<span class="hljs-number">0.114779</span>
maxDrawDown     <span class="hljs-number">0.655615</span>  <span class="hljs-number">0.688936</span>  <span class="hljs-number">0.715083</span>  <span class="hljs-number">0.721232</span>  <span class="hljs-number">0.798366</span>  <span class="hljs-number">0.221775</span>
meanRetMonthly -<span class="hljs-number">0.013558</span> -<span class="hljs-number">0.012814</span> -<span class="hljs-number">0.011494</span> -<span class="hljs-number">0.007282</span>  <span class="hljs-number">0.002829</span>  <span class="hljs-number">0.013366</span>
winRateMonthly  <span class="hljs-number">0.497462</span>  <span class="hljs-number">0.487310</span>  <span class="hljs-number">0.492386</span>  <span class="hljs-number">0.512690</span>  <span class="hljs-number">0.548223</span>  <span class="hljs-number">0.598985</span>
</code></pre>
</li>
</ul>
</li>
<li><p><span id="jump">&#x7ED3;&#x679C;</span></p>
</li>
</ol>
<p>&#x5F53;&#x524D;&#x53EF;&#x63D0;&#x53D6;&#x7684;&#x8BA1;&#x7B97;&#x7ED3;&#x679C;&#x5982;&#x4E0B;:  </p>
<table>
<thead>
<tr>
<th style="text-align:left">&#x5C5E;&#x6027;</th>
<th style="text-align:left">&#x542B;&#x4E49;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">groupclass.groupRetDaily</td>
<td style="text-align:left">&#x5404;&#x7EC4;&#x65E5;&#x6536;&#x76CA;&#x7387;&#x6570;&#x636E;</td>
</tr>
<tr>
<td style="text-align:left">groupclass.groupNevDaily</td>
<td style="text-align:left">&#x5404;&#x7EC4;&#x65E5;&#x51C0;&#x503C;&#x6570;&#x636E;</td>
</tr>
<tr>
<td style="text-align:left">groupclass.TMBDaily</td>
<td style="text-align:left">top-bottom&#x7EC4;&#x5408;&#x65E5;&#x6570;&#x636E;</td>
</tr>
<tr>
<td style="text-align:left">groupclass.groupRetMonthly</td>
<td style="text-align:left">&#x5404;&#x7EC4;&#x6708;&#x6536;&#x76CA;&#x7387;&#x6570;&#x636E;</td>
</tr>
<tr>
<td style="text-align:left">groupclass.groupNevMonthly</td>
<td style="text-align:left">&#x5404;&#x7EC4;&#x6708;&#x51C0;&#x503C;&#x6570;&#x636E;</td>
</tr>
<tr>
<td style="text-align:left">groupclass.TMBMonthly</td>
<td style="text-align:left">top-bottom&#x7EC4;&#x5408;&#x6708;&#x6570;&#x636E;</td>
</tr>
<tr>
<td style="text-align:left">groupclass.drawDown</td>
<td style="text-align:left">&#x5404;&#x7EC4;&#x3001;top-bottom&#x7EC4;&#x5408;&#x56DE;&#x64A4;&#x6570;&#x636E;</td>
</tr>
<tr>
<td style="text-align:left">groupclass.turnoverRate</td>
<td style="text-align:left">&#x5404;&#x7EC4;&#x6362;&#x624B;&#x7387;&#x6570;&#x636E;</td>
</tr>
<tr>
<td style="text-align:left">groupclass.figureExcessRet</td>
<td style="text-align:left">&#x5404;&#x7EC4;&#x5E74;&#x5316;&#x8D85;&#x989D;&#x6536;&#x76CA;&#x7387;&#x56FE;</td>
</tr>
<tr>
<td style="text-align:left">groupclass.figureNevDaily</td>
<td style="text-align:left">&#x5404;&#x7EC4;&#x51C0;&#x503C;&#x56FE;</td>
</tr>
<tr>
<td style="text-align:left">groupclass.figureTMBDrawDonn</td>
<td style="text-align:left">top-bottom&#x7EC4;&#x5408;&#x56DE;&#x64A4;&#x56FE;</td>
</tr>
<tr>
<td style="text-align:left">groupclass.figureTMBNevDaily</td>
<td style="text-align:left">top-bottom&#x7EC4;&#x5408;&#x51C0;&#x503C;&#x56FE;</td>
</tr>
<tr>
<td style="text-align:left">groupclass.figureTMBRetMonthly</td>
<td style="text-align:left">top-bottom&#x7EC4;&#x5408;&#x6708;&#x6536;&#x76CA;&#x7387;&#x56FE;</td>
</tr>
</tbody>
</table>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../factorTest/groupclass.html" class="navigation navigation-prev " aria-label="Previous page: groupclass()"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../factorTest/groupclass.save_result.html" class="navigation navigation-next " aria-label="Next page: groupclass.save_result()"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-back-to-top-button/plugin.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-splitter/splitter.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-code/plugin.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-auto-scroll-table/plugin.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"back-to-top-button":{},"chapter-fold":{},"expandable-chapters":{},"splitter":{},"popup":{},"code":{"copyButtons":true},"auto-scroll-table":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":[]},"fontsettings":{"theme":"white","family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
